package com.ruicar.afs.cloud.product.enums;

/**
 * @author changyu.gui
 * @version 1.0
 * @date 2020/5/15 23:50
 */
public enum SHOW_TYPE_ENUM {
    PRICING_PARAMETERS("定价类参数", "01"),
    PARAMETERS_AFTER_LOAN("贷后类参数", "02");
    private String title;
    private String value;

    SHOW_TYPE_ENUM(String title, String value) {
        this.title = title;
        this.value = value;
    }

    public static String getTitle(String value) {
        for (SHOW_TYPE_ENUM c : SHOW_TYPE_ENUM.values()) {
            if (c.value.equals(value)) {
                return c.title;
            }
        }
        return null;
    }

    public String getValue() {
        return value;
    }
}

